package com.company.cloud.article.modules.mgr.service;


import com.baomidou.mybatisplus.core.metadata.IPage;
import com.company.cloud.article.modules.cache.models.ArticleModel;
import com.company.cloud.article.modules.mgr.controller.req.*;
import com.company.cloud.common.bean.LoginSimpleUserInfo;

public interface ArticleMgrService {

	/**新增资讯*/
	public void save(ArticleMgrSaveParam params, LoginSimpleUserInfo userInfo);
	/**修改资讯*/
	public void update(ArticleMgrUpdateParam params, LoginSimpleUserInfo userInfo);
	/**删除资讯*/
	public void remove(String articleNo, LoginSimpleUserInfo userInfo);
	/**资讯上下架*/
	public void updateState(ArticleMgrUpdateStateParam params, LoginSimpleUserInfo userInfo);
	/**资讯批量上下架*/
	public void updateStateBatch(ArticleMgrUpdateStateBatchParam params, LoginSimpleUserInfo userInfo);


	/**批量新增引用*/
	public void addRel(ArticleRelAddListParam params, LoginSimpleUserInfo userInfo);
	/**新增引用*/
	public void addRel(ArticleRelAddParam params, LoginSimpleUserInfo userInfo);
	/**修改引用*/
	public void updateRel(ArticleRelUpdateParam params, LoginSimpleUserInfo userInfo);

	/**修改引用上下状态*/
	public void updateRelState(ArticleRelUpdateStateParam params, LoginSimpleUserInfo userInfo);
	/**批量修改引用上下状态*/
	public void updateRelStateBatch(ArticleRelUpdateStateBatchParam params, LoginSimpleUserInfo userInfo);
	/**删除引用*/
	public void removeRel(String articleRelNo, LoginSimpleUserInfo userInfo);

	public IPage<ArticleModel> queryPlatformArticle(PlatformArticleQuery4PageParam params, LoginSimpleUserInfo userInfo);

	public IPage<ArticleModel> queryArticle(ArticleMgrQuery4PageParam params, LoginSimpleUserInfo userInfo);
}
